package com.rightsidetech.user.mapper;

import com.rightsidetech.user.dtos.requst.UserInfoReq;
import com.rightsidetech.user.dtos.response.LoginInfoResp;
import com.rightsidetech.user.dtos.response.LoginResponse;
import com.rightsidetech.user.dtos.response.UserInfoDetailsResp;
import com.rightsidetech.user.dtos.response.UserInfoResp;
import com.rightsidetech.user.entity.UsUserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsUserInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UsUserInfo record);

    int insertSelective(UsUserInfo record);

    UsUserInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UsUserInfo record);

    int updateByPrimaryKey(UsUserInfo record);

    List<UserInfoResp> list(UserInfoReq req);

    String getMaxMemberNo();

    UsUserInfo findByPhoneNo(@Param("phoneNumber") String phoneNumber);

    UserInfoDetailsResp findDetals(@Param("id") Long id);

    LoginInfoResp getLoginInfo(@Param("userInfoId") Long userInfoId);

    String getHeadImgByUserInfoId(@Param("userInfoId") Long userInfoId);

    Long userStatis(@Param("isYesterday") Byte isYesterday);

    String findPhoneByNo(@Param("loginId") Long loginId);
}